package com.huibao.hulibao.activity;

import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.huibao.hulibao.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by lizhaoyong on 2018/8/31.
 */
public class BigPicActivity extends BaseActivity {

    @BindView(R.id.iv_pic)
    ImageView iv_pic;

    @OnClick(R.id.rl_back)
    public void back() {
        onBackPressed();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_big_pic);
        ButterKnife.bind(this);
        String url = getIntent().getStringExtra("pic");
        if (url != null && !url.equals("")) {
            Glide.with(this).load(url).into(iv_pic);
        }
    }
}
